package com.lyh.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lyh.common.annotation.Excel;
import com.lyh.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_member_user
 *
 * @author ruoyi
 * @date 2023-04-28
 */
public class SysMemberUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 会员等级 */
    @Excel(name = "会员等级")
    private Integer memberLeve;

    /** 1启用 0停用 */
    @Excel(name = "1启用 0停用")
    private Integer status;

    /** 会员id（VIP+日期+3位随机数） */
    @Excel(name = "会员id", readConverterExp = "V=IP+日期+3位随机数")
    private String memberId;

    /** 当天随机数 */
    @Excel(name = "当天随机数")
    private Integer randomNum;

    /** 当天日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "当天日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date currDate;

    /** 会员邀请码 */
    @Excel(name = "会员邀请码")
    private String invitationCode;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setMemberLeve(Integer memberLeve)
    {
        this.memberLeve = memberLeve;
    }

    public Integer getMemberLeve()
    {
        return memberLeve;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setRandomNum(Integer randomNum)
    {
        this.randomNum = randomNum;
    }

    public Integer getRandomNum()
    {
        return randomNum;
    }
    public void setCurrDate(Date currDate)
    {
        this.currDate = currDate;
    }

    public Date getCurrDate()
    {
        return currDate;
    }
    public void setInvitationCode(String invitationCode)
    {
        this.invitationCode = invitationCode;
    }

    public String getInvitationCode()
    {
        return invitationCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("memberLeve", getMemberLeve())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("memberId", getMemberId())
                .append("randomNum", getRandomNum())
                .append("currDate", getCurrDate())
                .append("invitationCode", getInvitationCode())
                .toString();
    }
}
